package com.example.day04.teachercode;

import java.util.Date;

public class OrderTest {
    public static void main(String[] args) {

        Order order1=new Order(1,11,11.1,0,new Date());
        Order order2=new Order(2,22,22.2,0,new Date());
        Order order3=new Order(3,33,33.3,0,new Date());
        Order order4=new Order(4,44,44.4,0,new Date());
        Order order5=new Order(5,55,55.5,0,new Date());

        Customer customer=new Customer();
        customer.addOrder(order1);
        customer.addOrder(order2);
        customer.addOrder(order3);
        customer.addOrder(order4);
        customer.addOrder(order5);

        customer.showAllmessage();

        customer.delByOrderno(22);
        customer.delByOrderno(33);
        Order[] orders = customer.showDelete();
        System.out.println("删除的订单信息如下");
        for (Order order : orders) {
            System.out.println("\t"+order);
        }

        customer.showAllmessage();

    }
}
